//
//  NCLocationController.h
//  IPhoneDemo
//
//  Created by Neusoft on 11-7-13.
//  Copyright 2011 Neusoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

#define CS_LocationFinished_Msg         @"CS_LocationFinished_Msg"

@protocol NCLocationControllerDelegate
@required

- (void)locationUpdate:(CLLocation *)location;
- (void)locationError:(NSError *)error;

@end

@interface NCLocationController : NSObject <CLLocationManagerDelegate> {
	CLLocationManager *_locMgr;
	id _delegate;
    NSString *sid;
    NSString *sname;
}

@property (nonatomic, assign) id delegate;
@property (nonatomic, readonly) CLLocationManager *locMgr;
@property (nonatomic, retain) NSString *sid;
@property (nonatomic, retain) NSString *sname;
- (void)startUpdatingLocation;
+ (BOOL)isLocationEnabled;

@end
